<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../font/iconfont/iconfont.css">
    <link rel="stylesheet" href="../../font/iconfont/iconfont.ttf">
    <link rel="stylesheet" href="../../css/common.css">
    <link rel="stylesheet" href="../../css/personal/personal.css">
    <style>
        #myTabContent .row {
            margin-top: 15px;
        }

        #myTabContent .row input {
            width: 300px;
        }

        .button {
            position: relative;
            right: 224px;
            top: 94px;
            width: 103px;
            background-color: #eee;
            border: none;
            color: black;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 10px;
            float: right;
            cursor: pointer;
            z-index: 99999;
        }

    </style>
</head>
<body>
<div class="index_container">
    <div class="header">
        <div class="header_bar_container">
            <div class="header_bar">
                <ul class="header_bar_left">
                    <li>
                        <span class="icon-font icon-phone header_bar_icon"></span>
                        <p>1234567890</p>
                    </li>
                    <div class="site_pipe"></div>
                    <li>
                        <span class="icon-font icon-mail header_bar_icon"></span>
                        <p>12345@qq.com</p>
                    </li>
                </ul>
                <ul class="header_bar_right">
                    <li>
                        <div class="head_btn">
                            <div class="head_btn_title">登录</div>
                            <div class="head_btn_title">Login</div>
                        </div>
                    </li>
                    <div class="site_pipe"></div>
                    <li>
                        <div class="head_btn">
                            <div class="head_btn_title">注册</div>
                            <div class="head_btn_title">registred</div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <!--导航-->
        <div class="header_nav_container">
            <div class="header_nav_box">
                <div class="my_address">
                    <span class="icon-font icon-address header_bar_icon"></span>
                    <p>London</p>
                </div>
                <div class="logo">
                    <img src="" alt="">
                </div>
                <div class="header_nav">
                    <ul>
                        <li>
                            <a href="#">
                                <div class="title_zh">首页</div>
                                <div class="title_en">Home</div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <div class="title_zh">购货</div>
                                <div class="title_en">Purchase</div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <div class="title_zh">购货车</div>
                                <div class="title_en">Shopping Car</div>
                            </a>
                        </li>
                        <li class="active">
                            <a href="#">
                                <div class="title_zh">我的</div>
                                <div class="title_en">Mine</div>
                            </a>
                        </li>
                        <li class="shop_search">
                            <div class="icon-font icon-search"></div>
                        </li>
                    </ul>
                </div>
                <!--搜索-->
                <div class="search_box">
                    <input type="text" class="" placeholder="请输入搜索内容/Enter the search content">
                    <div class="search_btn">
                        <div class="title_zh">搜索</div>
                        <div class="title_en">Search for</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--轮播-->
    <div class="banner">
        <ul>
            <li class="on" onclick="showList(0)"></li>
            <li onclick="showList(1)"></li>
            <li onclick="showList(2)"></li>
        </ul>
        <div class="banner_list">
            <a href="#"><img src="../../image/banner/99F41A88514108E2EF7195BB5F68A316.png" title="" alt=""></a>
            <a href="#"><img src="../../image/banner/D47EF50517F083B476AB231D5CDB2602.png" title="" alt=""></a>
            <a href="#"><img src="../../image/banner/F8420969FFEED07A7280638F95DD0588.png" title="" alt=""></a>
        </div>
    </div>
    <div class="content">
        <div class="my_show_container">
            <div class="my_show_box">

                <div class="categories_list ">

                </div>

                <div class="my_show_content">
                    <div class="my_show_bar">
                        <div class="title_tag">
                            <p>个人信息</p>
                            <p>Personal information</p>
                        </div>

                    </div>
                    <div class="my_show_area">
                        <div class="row per-head">
                            <img class="img-circle col-lg-2" src="../../image/personal/head.png"/>
                            <div class="col-lg-7 ">Set User Name</div>
                            <div class="col-lg-3 btn btn-default btn-right">
                                <div>编辑个人信息</div>
                                <div>Personal information</div>
                            </div>
                        </div>
                        <div>
                            <ul id="myTab" class="nav nav-tabs">
                                <li class="active">
                                    <a href="#basic-info" data-toggle="tab">
                                        基本资料</br>
                                        <span>basic information</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="#head" data-toggle="tab">
                                        头像上传</br>
                                        <span>avator upload</span>
                                    </a>
                                </li>

                            </ul>
                            <div class="button" style="height: 38px">获取验证码<br>phone number
                            </div>
                            <div id="myTabContent" class="tab-content">
                                <div class="tab-pane fade in active" id="basic-info">
                                    <div class="row">
                                        <div class="col-lg-3">用户名：<br>username：</div>
                                        <div class="col-lg-9 "><input style="height: 40px;"></div>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-3">手机号：<br>phone number：</div>
                                        <div class="col-lg-9"><input style="height: 40px;">

                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-3">验证码：<br>phone number：</div>
                                        <div class="col-lg-9"><input style="height: 40px;"></div>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-5"></div>
                                        <div class="col-lg-2 btn btn-default btn-sm " >
                                            <div>保存</div>
                                            <div>save</div>
                                        </div>
                                        <div class="col-lg-5"></div>

                                    </div>

                                </div>
                                <div class="tab-pane fade in active" id="head">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

    </div>
</div>
<div class="slogan">
    <div class="slogan_title">
        <p>Here is the slogan</p>
    </div>
    <div class="sub_slogan_title">
        <p>Here is the slogan</p>
    </div>
</div>
<div class="footer">
    <div class="footer_content">
        <div class="footer_cont_left">
            <div class="about_us_container">
                <div class="footer_title">
                    <div class="title_zh">关于我们</div>
                    <div class="title_en">About us</div>
                </div>
                <div class="about_us_text">
                    <p>
                        这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容这里是关于我们内容</p>
                </div>
            </div>
            <div class="photos_stream_container">
                <div class="footer_title">
                    <div class="title_zh">照片流</div>
                    <div class="title_en">Photos stream</div>
                </div>
                <div class="photos_img_box">
                    <div class="photos_img_a">
                        <img src="../../image/footer/photos1.png" alt="">
                    </div>
                    <div class="photos_img_b">
                        <img src="../../image/footer/photos2.png" alt="">
                    </div>
                    <div class="photos_img_c">
                        <img src="../../image/footer/photos3.png" alt="">
                    </div>
                    <div class="photos_img_d">
                        <img src="../../image/footer/photos4.png" alt="">
                    </div>
                </div>
            </div>
        </div>
        <div class="footer_cont_right">
            <div class="contact_us_container">
                <div class="footer_title">
                    <div class="title_zh">联系我们</div>
                    <div class="title_en">Contact us</div>
                </div>
                <div class="contact_us_area">
                    <div class="contact_row">
                        <div class="contact_icon icon-font icon-address"></div>
                        <div class="contact_title">
                            <div class="title_zh">地址</div>
                            <div class="title_en">address</div>
                        </div>
                        <div class="contact_cont">
                            <div class="title_zh">这里是地址</div>
                            <div class="title_en">Here is the address</div>
                        </div>
                    </div>
                    <div class="contact_row">
                        <div class="contact_icon icon-font icon-iconminesel1"></div>
                        <div class="contact_title">
                            <div class="title_zh">联系人</div>
                            <div class="title_en">contact</div>
                        </div>
                        <div class="contact_cont">
                            <div class="title_zh">这里是联系人</div>
                            <div class="title_en">Here is the contact</div>
                        </div>
                    </div>
                    <div class="contact_row">
                        <div class="contact_icon icon-font icon-phone"></div>
                        <div class="contact_title">
                            <div class="title_zh">电话</div>
                            <div class="title_en">phone</div>
                        </div>
                        <div class="contact_cont">
                            <div class="title_zh">这里是电话号码</div>
                            <div class="title_en">Here is the phone number</div>
                        </div>
                    </div>
                    <div class="contact_row">
                        <div class="contact_icon icon-font icon-mail"></div>
                        <div class="contact_title">
                            <div class="title_zh">邮箱</div>
                            <div class="title_en">mailbox</div>
                        </div>
                        <div class="contact_cont">
                            <div class="title_zh">这里是邮箱</div>
                            <div class="title_en">Here is the email</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="footer_bottom_bar"><p>2018 © Metronic Shop UI. ALL Rights Reserved.</p></div>
</div>
</div>

</body>
<script src="../../js/jquery.min.js"></script>
<script src="../../js/bootstrap.min.js"></script>
<script src="../../js/common.js"></script>
<script>
    // AJAX请求
    var data = {
        type: "待处理",
        typeEn: "to be process",
        list: [
            {
                foodImg: "../../image/personal/food.png",
                foodName: "优质澳洲牛排",
                foodNameEn: "Quality Australian steak",
                foodPrice: "20$/kg",
                num: 10,
                total: 200,
                dateReceipt: '周一',
                type: "待处理",
                typeEn: "to be process"
            }, {
                foodImg: "../../image/personal/food.png",
                foodName: "优质澳洲牛排",
                foodNameEn: "Quality Australian steak",
                foodPrice: "20$/kg",
                num: 10,
                total: 200,
                dateReceipt: 'January 20',
                type: "待处理",
                typeEn: "to be process"
            }
        ]
    };
    $(function () {
        bannerInit();
        setOrderList(data)
    });
    var ident = false;
    $('.shop_search').click(function () {
        if (false == ident) {
            $('.search_box').show();
            ident = true;
        } else {
            $('.search_box').hide();
            ident = false;
        }
    })


    /*
     * @description : 将数据渲染出来
     * @params:
     * @author : peng huaneng
     * @date : 2018/1/22 15:20
     */
    function setOrderList(data) {
        var html = "";
        html = "<div>" + data.type + "<br>" + data.typeEn + "</div>";
        for (var i = 0; i < data.list.length; i++) {
            html += '<div class="order bottom-border"> <div class="row">';
            html += '<div class="col-lg-2"><img src="' + data.list[i].foodImg + '"/></div>';
            html += '<div class="col-lg-6 "><div>' + data.list[i].foodName + '<br>' + data.list[i].foodNameEn + ' </div> ';
            html += '<div style="margin-top: 15px">' + data.list[i].foodPrice + '</div> </div>';
            html += '<div class="col-lg-4"> <div class="row "> <div class="col-lg-6 "> <div>Total VAT</div> ' +
                '<div style="margin-top: 15px">收取总额<br>Grand total</div>';
            html += '</div> <div class="col-lg-6 pull-right"> <div><img src="../../image/personal/money.png"> &nbsp;' + data.list[i].num + '</div>';
            html += '<div style="margin-top: 15px"><img src="../../image/personal/money.png"> &nbsp; ' + data.list[i].total;
            html += '</div></div></div></div></div>  <div class="row " >';
            html += '<div class="col-lg-3">收货日期<br>Date of receipt</div>';
            html += '<div class="col-lg-2" style="background-color: #cccccc">' + data.list[i].dateReceipt + '<br>.</div> </div>';
            html += '<div class="row " style="margin-top: 10px"> <div class="col-lg-3">订单状态<br>Order Status</div>';
            html += '<div class="col-lg-2">' + data.list[i].type + '<br>' + data.list[i].typeEn + '</div> </div>';
            html += '<div style="margin-top: 15px"></div>  </div>';
        }
        console.log(html);
        $("#list").append(html);
    }


</script>
</html>